import * as actions from '../actions/index';

// 对页面prop 数据进行管理
export const initialState = {
  adminList: [],
  isLoadingTable: true,
  total: 0,
  currentPage: 1,
  auto_sync_member_enable: false,
  isGetSetting: false,
};
const defaultAction = {
  type: 'doNothing',
};

export default function index(state = initialState, action = defaultAction) {
  switch (action.type) {
    case actions.UPDATE_DATA:
      return { ...state, ...action.data };
    default:
      return state;
  }
}
